Collections in Messages
PushNotifications messages can include repeating business data from Math collections. You can map a collection MathVariable to a PushNotifications Parameter and use a JSTL loop to render one message element for each collection item.
The supported collection types are:
-
MAP collections
-
TEXTARRAY collections
A MAP collection can render its key and value as child elements of a repeated message element. A TEXTARRAY collection can render each text value as a repeated message element.
JSTL Loop Behavior
Configure the j:forEach items attribute as [ParameterName] or ${ParameterName}. The var attribute is required for collection-item tokens to resolve.
For MAP collections, use ${row.key} and ${row.value}, where row is the value specified for var.
If a collection is empty or null, DMP removes the loop and does not generate repeated child elements. The enclosing business element can remain as an empty, valid XML element.
For example, collections can be used to include repeating policy fields, policy segments, premium details, suspense records, roles, participants, requirements, activities, or other repeating business data in one downstream message.
For the complete PushNotifications XML configuration, including JSTL syntax, parameter definitions, XML schemas, and examples for nested message structures and collections, see Configuring PushNotifications Messages in the XML Configuration Guide.